/*import java.util.Scanner;

*//**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-27
 * Time: 16:48
 *//*
public class SumOfFactorial {
    static int Factorial(int n){
        int ret = 1;
        for (int i = 1; i <= n; i++) {
            ret*=i;
        }
        return ret;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int n = sc.nextInt();
            int sum = 0;
            for (int i = 1; i <= n; i++) {
                sum += Factorial(i);
            }
            System.out.println(n+"的阶乘和为："+sum);
        }
    }
}*/
